package com.example.service.adm;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.context.PageResult;
import com.example.entity.ProductDO;
import com.example.vo.product.ProductPageReq;
import com.example.vo.product.ProductPageResp;
import com.example.vo.product.ProductReq;
import com.example.vo.product.ProductResp;
import jakarta.validation.Valid;

/**
 * @author zbxComputer
 * @description 针对表【sys_store_product(商品表)】的数据库操作Service
 * @createDate 2024-11-21 12:49:18
 */
public interface AdmProductService extends IService<ProductDO> {

    PageResult<ProductPageResp> findAll(@Valid ProductPageReq req);

    void delete(Long[] ids);

    void updateProduct(@Valid ProductReq req);

    void add(@Valid ProductReq req);

    ProductResp findById(Long id);

    void changeStatusById(Long id);
}
